package net.neiquan.neiquandemowithkf.fragment;

import android.support.v4.app.Fragment;


import net.neiquan.neiquandemowithkf.R;
import net.neiquanlib.base.BaseViewPagerFragment;

import java.util.ArrayList;

/**
 * 作者 : hjb
 * 时间 : 2016/6/22.
 */
public class TabOneFragment extends BaseViewPagerFragment {

    @Override
    public ArrayList<Fragment> getFragments() {
        ArrayList<Fragment> fragments = new ArrayList<>();
        fragments.add(new OneListFragment());
        fragments.add(new MyListFragment());
        fragments.add(new TwoListFragment());
        fragments.add(new ThreeListFragment());
        fragments.add(new FourListFragment());
        fragments.add(new FourListFragment());
        fragments.add(new FourListFragment());
        return fragments;
    }

    @Override
    public String[] getTitle() {
        return getResources().getStringArray(R.array.home_title);
    }

    @Override
    protected boolean isHaveHead() {
        return true;
    }

    @Override
    protected void setData(int currentItem) {
        setTitleTv("首页");
        setBackGone();
    }
}
